{include file="header.html"}

<div class="page-header">
	<h6>
		系统设置
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			提现管理
		</small>
		<div>
			<a href="?app=withdraw&act=export&where={$where}" target="_blank">导出到EXCEL</a>
		</div>		
	</h6>
</div>

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="withdraw" />
<input type="hidden" name="act" id="act" value="index" />
<input type="text" class="input-medium" placeholder="关键词" name="keyword" value="{$keyword}" /> 
<input type="text" class="form-control" name="begin_date" id="begin_date" placeholder="开始日期" value="{$begin_date}" initdate="" style="width:100px;" />
 -
<input type="text" class="form-control" name="end_date" id="end_date" placeholder="结束日期" value="{$end_date}" initdate="" style="width:100px;" />
<select name="status" id="status">
		<option value="">全部</option> 
		<option value="0" {if $status==='0'}selected{/if}>正在审核</option> 
		<option value="1" {if $status==1}selected{/if}>已经提现</option> 
		<option value="-1" {if $status==-1}selected{/if}>提现失败</option> 
</select>
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<div class="table-content">
<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>会员</th>
			<th>姓名</th>
			<th>银行</th>
			<th>支行</th>
			<th>银行卡号</th>
			<th>支付宝账号</th>
			<th>提现金额</th>
			<th>申请日期</th>
			<th>状态</th>
			<th>审核备注</th>
			<th>审核日期</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row name=row}
		<tr>
			<td>{$row.id}</td>
			<td><a href="?app=member&act=edit&id={$row.member_id}">{$row.member_name}({$row.mobile})</a></td>
			<td>{$row.name}</td>
			<td>{$row.bank_name}</td>
			<td>{$row.bank_branch}</td>
			<td>{$row.bank_card}</td>
			<td>{$row.alipay}</td>
			<td>{$row.withdraw_money}</td>
			<td>{$row.add_time|date_format:"%Y-%m-%d"}</td>
			<td>{$row.status_name}</td>
			<td>{$row.audit_memo}</td>
			<td>{if $row.audit_time}{$row.audit_time|date_format:"%Y-%m-%d"}{else}-{/if}</td>
			<td>
				<a href="?app=withdraw&act=edit&withdraw_id={$row.id}">
					<button type="button" class="btn btn-xs btn-info">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
				</button>
				</a>
				<a href="?app=withdraw&act=delete&withdraw_id={$row.id}" class="delete">
					<button type="button" class="btn btn-xs btn-danger">
					<i class="ace-icon fa fa-trash-o bigger-120"></i>
				</button>
				</a>
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
</div>
<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}

<script>
$(function(){
	$('#begin_date').datepicker();
	$('#end_date').datepicker();
});
</script>

